﻿<Window x:Class="Draughts.View.SaveView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:res="clr-namespace:Draughts.Resources"
        Title="{x:Static res:Resource.SaveWindowTitle}" Width="320" Height="130" WindowStartupLocation="CenterOwner"
        ResizeMode="NoResize" ShowInTaskbar="False">
    <Grid FocusManager.FocusedElement="{Binding ElementName=nameTextBox}">
        <TextBlock HorizontalAlignment="Left" Margin="12,12,0,0" Text="{x:Static res:Resource.SaveNameText}" VerticalAlignment="Top"/>
    	<TextBox x:Name="nameTextBox" Margin="12,31.96,12,48.08" Text="{Binding Path=Name, UpdateSourceTrigger=PropertyChanged}" />

        <Button Content="{x:Static res:Resource.SaveButtonText}" Margin="0,0,91,12" VerticalAlignment="Bottom" IsDefault="True" HorizontalAlignment="Right" Width="75" Command="{Binding Path=SaveCommand}"/>
        <Button Content="{x:Static res:Resource.CancelButtonText}" HorizontalAlignment="Right" Margin="0,0,12,12" VerticalAlignment="Bottom" Width="75" IsCancel="True"/>
    </Grid>
</Window>
